/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package springinyeccion;

import modelo.Espectaculo;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 *
 * @author odeen
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
            ApplicationContext aplicacion = new ClassPathXmlApplicationContext("aop.xml");
            Espectaculo espectáculo = (Espectaculo) aplicacion.getBean("espectaculo");
            espectáculo.llevarACabo();

    }
}
